<?php
namespace app\admin\controller;
use think\Request;
use app\admin\model\Nav;
use think\facade\View;
use tplayadmin\test;
use socoding\thinkadmin\ThinkAdmin;
class Tpl
{
    public function test(){
        echo test::tests();
        return 34;
    }
    public function layout(){
        return ThinkAdmin::world();
        require_once '../vendor/socoding/think-admin/src/route.php';
        return 4;
        $nav = Nav::order('order asc,id asc')->select();
        $navs = [];
        foreach($nav as $r){
                if(!isset($navs[$r['parent_id']])) $navs[$r['parent_id']] = [];
                $navs[$r['parent_id']][] = $r;

        }
        View::assign('navs',$navs);
        return View::fetch();
    }
    public function index(Request $request)
    {

    	return View::fetch();
    }
    public function list(Request $request)
    {
        dump($request->param());
        return View::fetch();
    }
    public function form(Request $request)
    {

    }
    public function page(Request $request)
    {
        return View::fetch();
    }
}
